﻿<UserControl x:Class="ChatApp.Client.ucChat"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:dxd="http://schemas.devexpress.com/winfx/2008/xaml/docking"
             xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"
             xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="*"></RowDefinition>
            <RowDefinition Height="300*"></RowDefinition>
            <RowDefinition Height="60"></RowDefinition>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*"></ColumnDefinition>
        </Grid.ColumnDefinitions>
        <Rectangle Fill="White" Grid.Row="1" Stroke="#FF7096C3" StrokeThickness="0.5"></Rectangle>
        <dxg:GridControl Name="gridChat" Grid.Row="1">
            <dxg:GridControl.Columns>
                <dxg:GridColumn FieldName="ContentChat" ReadOnly="True" Header="" AllowEditing="False" />
            </dxg:GridControl.Columns>
            <dxg:GridControl.View>
                <dxg:TableView Name="tbvDmYeuCau" ShowGroupPanel="False" ShowAutoFilterRow="False" ShowTotalSummary="False" 
                               AutoWidth="True" AllowGrouping="False" ShowHorizontalLines="False" ShowColumnHeaders="False"
                               RowMinHeight="30"
                               ShowIndicator="False"
                               MultiSelectMode="None"/>
            </dxg:GridControl.View>
        </dxg:GridControl>
        <dxe:TextEdit Name="txtNoidung" Grid.Row="2" Margin="0,0,50,0" BorderThickness="0" KeyDown="txtNoidung_KeyDown"/>
        <Rectangle Grid.Row="2" Height="22" VerticalAlignment="Top" Fill="#FFD1DCE5" Margin="1,1,51,0"/>
        <Label Content="Nội dung đối thoại" FontSize="11" VerticalContentAlignment="Center" FontWeight="DemiBold" 
                HorizontalAlignment="Left" Name="label2" VerticalAlignment="Top" Grid.Row="2" Foreground="#FF94A5C7" Margin="7,0,0,0"/>
        <Button  Grid.Row="2" Height="60" HorizontalAlignment="Right" 
                FontSize="16" Foreground="#9B000000" FontWeight="DemiBold" Name="btnSend" VerticalAlignment="Bottom" Width="50" Click="btnSend_Click">
            <StackPanel Orientation="Vertical">
                <Image Source="/ChatApp.Client;component/Images/Icons/send.ico" Width="40" Height="25"/>
            </StackPanel>
        </Button>
    </Grid>
</UserControl>
